package com.saikuo.service.service.impl;

import com.saikuo.service.constant.CacheContext;
import com.saikuo.service.service.ICommonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;

/**
 * Created by chenzhuo on 16/7/25.
 */
@Service
public class CommonServiceImpl implements ICommonService {


    @Autowired
    private StringRedisTemplate redisTemplate;

    @Override
    public void delCategoryCache(){
        redisTemplate.delete(CacheContext.MEDICINE_CATEGORY);
    }



}
